%-- 12.04.2024 14:34 --%
a = (-3:3)'
b = 10^a
b = 10.^a
logspace(-3,3,7)
logspace(-3,3,7)'
logspace(-3,3,length(a))'
clc
length(a)
a
b = logspace(-3,3,length(a))
b = logspace(-3,3,length(a))'
clc
save aundb a b
clear
load aundb
[a b ]
a
clc
save aundb.txt a  -ascii
dir
dir *.txt
clc
clear a
load aundb.txt
load aundb
clear ans
cleat aundb
clear aundb
save aundb.txt -ascii
load aundb.txt
aundb
exit aundb.txt
edit aundb.txt
ab = [a  b]
save aundb.txt -ascii
edit aundb.txt
save aundb.txt ab -ascii
edit aundb.txt
clc
clear
load aundb.txt
clc
clear a b
optsclc
clc
clear
Untitled
help readtable
help xlsread
w = (0:5)'
evonw = [ exp(-w) -exp(-w) ]
plot(w, evonw)
clc
title('Matrix evonw')
dummy = [w evonw]
save evonw.txt dummy -ascii
edit evonw.txt
save evonw.txt a b -ascii
save evonw.txt w evonw -ascii
edit evonw.txt
load evonw.txt
save evonw.txt dummy -ascii
clc
load evonw.txt
clear
load evonw.txt
evonw
w = (0:5)';
evonw = [ exp(-w) -exp(-w) ];
plot(w, evonw)
load evonw.txt
evonw1 = evonw
evonw = [ exp(-w) -exp(-w) ];
evonw = [ exp(-w) -exp(-w) ]
clc
evonw1
hold
evonw1(:,1)
evonw1(:,2:3)
plot(evonw1(:,1),evonw1(:,2:3),'k--')
doc print
clc
clear
%-- 19.04.2024 14:30 --%
w = -2:.5:2
w = w'
help ceil
clc
format compact
[ w ceil(w) ]
doc format
plot(w,ceil(w),'r')
hold on , plot(w,ceil(w),'r*')
fplot('ceil(w)',[-2,2],'--')
fplot('ceil(w)',[-2,2],'k--')
step(w,ceil(w),'c:')
stairs(w,ceil(w),'c:')
clc
w = (-2:.05:2)';
plot(w,ceil(w),'-.')
w = (-2:.0001:2)';
plot(w,ceil(w),'-.')
clc
t = (-6:.1:6)*pi ;
view(3)
clf
view(3)
box
grid
max(t)
min(t)
help axis
axis([min(t) max (t) min(t) max (t) min(t) max (t) ])
max (t)
axis([min(t) max(t) min(t) max(t) min(t) max(t) ])
plot3(t*sin(t),t*cos(t),t)
plot3(t.*sin(t),t.*cos(t),t)
grid
hold on, if t==0, plot3(t.*sin(t),t.*cos(t),t,'ko')
end
t == 0
1
hold on, if t==0, plot3(t.*sin(t),t.*cos(t),t,'ko') , end
clf
hold on, if t==0, plot3(t.*sin(t),t.*cos(t),t,'ko') , end
hold on, if t==0, view(3) , plot3(t.*sin(t),t.*cos(t),t,'-') , end
hold on, if t==0, view(3) , plot3(t.*sin(t),t.*cos(t),t) , end
clc
t
plot3(t.*sin(t),t.*cos(t),t)
t=0,plot3(t.*sin(t),t.*cos(t),t)
t=0,plot3(t.*sin(t),t.*cos(t),t,'k')
clc
t = pi*(-6:0.1:6);
figure
hold on
view(3)
axis([ min(t) max(t) min(t) max(t) min(t) max(t) ]);
for i=t ,
if i<0,
plot3(sin(i).*i,cos(i).*i,i,'r+')
elseif i==0,
plot3(sin(i).*i,cos(i).*i,i,'ko')
else
plot3(sin(i).*i,cos(i).*i,i,'b*')
end;
pause(0.05)
end
clf
for i=t ,
if i<0,
plot3(sin(i).*i,cos(i).*i,i,'r+')
elseif i==0,
plot3(sin(i).*i,cos(i).*i,i,'ko')
else
plot3(sin(i).*i,cos(i).*i,i,'b*')
end;
pause(0.005)
end
hold
for i=t ,
if i<0,
plot3(sin(i).*i,cos(i).*i,i,'r+')
elseif i==0,
plot3(sin(i).*i,cos(i).*i,i,'ko')
else
plot3(sin(i).*i,cos(i).*i,i,'b*')
end;
pause(0.005)
end
clf
hold on
for i=t ,
if i<0,
plot3(sin(i).*i,cos(i).*i,i,'r+')
elseif i==0,
plot3(sin(i).*i,cos(i).*i,i,'ko')
else
plot3(sin(i).*i,cos(i).*i,i,'b*')
end;
pause(0.5)
end
view(3)
for i=t ,
if i<0,
plot3(sin(i).*i,cos(i).*i,i,'r+')
elseif i==0,
plot3(sin(i).*i,cos(i).*i,i,'ko')
else
plot3(sin(i).*i,cos(i).*i,i,'b*')
end;
pause(0.5)
end
plot3(sin(t).*t,cos(t).*t,t,'m')
